package com.tom.blog.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tom.blog.dao.VoteDao;
import com.tom.blog.entity.Vote;
import com.tom.blog.service.VoteService;

/**
 * Vote 服务.
 * 
 */
@Service
public class VoteServiceImpl implements VoteService {

	@Autowired
	private VoteDao voteRepository;
	@Override
	@Transactional
	public void remove(Long id) {
		voteRepository.delete(id);
	}
	@Override
	public Vote get(Long id) {
		return voteRepository.findOne(id);
	}

}
